package br.cin.ufpe.corba.exmaples.complex;

import br.cin.ufpe.corba.ObjectImpl;
import br.cin.ufpe.corba.ObjectRef;

public class SimpleCalculatorStub extends ObjectImpl implements SimpleCalculator {

	public SimpleCalculatorStub(ObjectRef objectRef) {
		super(objectRef);
	}

	public int add(int a, int b) {
		return (Integer) invoke("add", 
				new String[] {int.class.getCanonicalName(), int.class.getCanonicalName()}, 
				new Object[] {a, b}, true);
	}

	public int sub(int a, int b) {
		return (Integer) invoke("sub", 
				new String[] {int.class.getCanonicalName(), int.class.getCanonicalName()}, 
				new Object[] {a, b}, true);
	}

}
